package com.itheima.reggie.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.Employee;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;

public interface EmployeeService extends IService<Employee> {
    /**
     * 员工分页查询接口
     * @param page
     * @param pageSize
     * @return
     */
    IPage<Employee> selectPage(Integer page, Integer pageSize,String employeName);

    /**
     * 员工保存接口
     * @param request
     * @param employee
     * @return
     */
    boolean saveEmployee(HttpServletRequest request, Employee employee);

    /**
     * 编辑员工
     * @param request
     * @param employee
     * @return
     */
    boolean updateEmployee(HttpServletRequest request, Employee employee);

    Employee selectByID(Long id);

    ArrayList<Employee> selectAll1();
}
